package com.nmsl.sn.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.sn.mapper.SnPhysicalInfoMapper;
import com.nmsl.sn.domain.SnPhysicalInfo;
import com.nmsl.sn.service.ISnPhysicalInfoService;

/**
 * 体格信息Service业务层处理
 * 
 * @author sn
 * @date 2025-02-21
 */
@Service
public class SnPhysicalInfoServiceImpl implements ISnPhysicalInfoService 
{
    @Autowired
    private SnPhysicalInfoMapper snPhysicalInfoMapper;

    /**
     * 查询体格信息
     * 
     * @param physicalInfoId 体格信息主键
     * @return 体格信息
     */
    @Override
    public SnPhysicalInfo selectSnPhysicalInfoByPhysicalInfoId(Long physicalInfoId)
    {
        return snPhysicalInfoMapper.selectSnPhysicalInfoByPhysicalInfoId(physicalInfoId);
    }

    /**
     * 查询体格信息列表
     * 
     * @param snPhysicalInfo 体格信息
     * @return 体格信息
     */
    @Override
    public List<SnPhysicalInfo> selectSnPhysicalInfoList(SnPhysicalInfo snPhysicalInfo)
    {
        return snPhysicalInfoMapper.selectSnPhysicalInfoList(snPhysicalInfo);
    }

    /**
     * 新增体格信息
     * 
     * @param snPhysicalInfo 体格信息
     * @return 结果
     */
    @Override
    public int insertSnPhysicalInfo(SnPhysicalInfo snPhysicalInfo)
    {
        return snPhysicalInfoMapper.insertSnPhysicalInfo(snPhysicalInfo);
    }

    /**
     * 修改体格信息
     * 
     * @param snPhysicalInfo 体格信息
     * @return 结果
     */
    @Override
    public int updateSnPhysicalInfo(SnPhysicalInfo snPhysicalInfo)
    {
        return snPhysicalInfoMapper.updateSnPhysicalInfo(snPhysicalInfo);
    }

    /**
     * 批量删除体格信息
     * 
     * @param physicalInfoIds 需要删除的体格信息主键
     * @return 结果
     */
    @Override
    public int deleteSnPhysicalInfoByPhysicalInfoIds(Long[] physicalInfoIds)
    {
        return snPhysicalInfoMapper.deleteSnPhysicalInfoByPhysicalInfoIds(physicalInfoIds);
    }

    /**
     * 删除体格信息信息
     * 
     * @param physicalInfoId 体格信息主键
     * @return 结果
     */
    @Override
    public int deleteSnPhysicalInfoByPhysicalInfoId(Long physicalInfoId)
    {
        return snPhysicalInfoMapper.deleteSnPhysicalInfoByPhysicalInfoId(physicalInfoId);
    }
}
